import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt


img=cv.imread('F:\\11\\caoshen.png',1)
cv.imwrite('F:\\11\\12.jpg',img)
cv.imshow('1',img)
plt.imshow(img[:,:,::-1])
plt.title('caoshen'),plt.xticks([]),plt.yticks([])
plt.show()
k=cv.waitKey(0)
cv.imwrite('messigray.png',img)